package com.ostrich.library_common.utils

import com.ostrich.library_log.Logger
import com.ostrich.library_log.LoggerLevel
import com.ostrich.library_log.LoggerStrategy

/**
 * @Author : yaotianxue
 * @Time : On 2023/10/23 15:00
 * @Description : LoggerUtils
 */
class LoggerUtils {
    companion object{
        private val logger = Logger.Builder()
            .setDebug(true)
            .setSaveUrl("")
            .setLevel(LoggerLevel.Debug)
            .setStrategy(LoggerStrategy.LOGCAT)//策略
            .setTag("测试")
            .build()

        @JvmStatic
        fun d(tag:String,log:String){
            logger.d(tag,log)
        }
        @JvmStatic
        fun v(tag:String,log:String){
            logger.v(tag,log)
        }
        @JvmStatic
        fun i(tag:String,log:String){
            logger.i(tag,log)
        }
        @JvmStatic
        fun w(tag:String,log:String){
            logger.w(tag,log)
        }
        @JvmStatic
        fun e(tag:String,log:String){
            logger.d(tag,log)
        }
    }
}